import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
//引入elementUI
import ElementUI from 'element-ui';
import axios from './axios'
import qs from 'qs'
import 'element-ui/lib/theme-chalk/index.css';
//引入markDown
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
import PermsButton from './components/PermsButton.vue'
//引用echarts
import echarts from "echarts"
Vue.prototype.$echarts = echarts

//全局注册权限按钮
Vue.component("PermsButton",PermsButton);

Vue.config.productionTip = false;
Vue.prototype.$post = axios.axiosPublic.$post
Vue.prototype.$get = axios.axiosPublic.$get
Vue.prototype.$qs = qs;

Vue.use(ElementUI);
Vue.use(axios);
Vue.use(mavonEditor)
//标题
document.title='医院药品管理系统';
new Vue({
    router,
    store,
    render: h => h(App)
}).$mount("#app");
